package com.example.dormitory_system.service;

import com.example.dormitory_system.domain.dto.LoginDTO;
import com.example.dormitory_system.domain.dto.student.StudentInfoUpdateDTO;
import com.example.dormitory_system.domain.dto.sysuser.RegisterDTO;
import com.example.dormitory_system.domain.enetiy.Student;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.dormitory_system.domain.vo.student.StuLoginVO;
import com.example.dormitory_system.domain.vo.student.StudentInfoVO;
import com.example.dormitory_system.domain.vo.tsysuser.FindStudentVO;
import com.example.dormitory_system.domain.vo.user.LoginVO;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
* @author keenan
* @description 针对表【tb_student(学生表)】的数据库操作Service
* @createDate 2025-03-26 15:31:26
*/
public interface StudentService extends IService<Student> {

    StuLoginVO login(LoginDTO loginDTO);

    int register(RegisterDTO registerDTO);


    void importStudents(MultipartFile file) throws IOException;

    StudentInfoVO info(Long studentId);

    int updateInfo(StudentInfoUpdateDTO studentInfoUpdateDTO);

    List<FindStudentVO> findStudent(String roomName, String buildingName);
}